package com.fengye.serialization.serializer;

import com.fengye.common.CommonUtil;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author fengye
 * @Date 2023/2/12 17:01
 **/
public class TestBean implements Serializable {

    /** serialVersionUID */
    private static final long serialVersionUID = 6645366456444950917L;

    private String name;

    private transient String tranPra;

    private int number;

    private Date date;

    private List<String> lists;

    private Map<String, Integer> maps;

    public TestBean(){}

    public TestBean(String name, int number, List<String> lists, Map<String, Integer> maps, Date date) {
        this.name = name;
        this.number = number;
        this.lists = lists;
        this.maps = maps;
        this.date = date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTranPra() {
        return tranPra;
    }

    public void setTranPra(String tranPra) {
        this.tranPra = tranPra;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public List<String> getLists() {
        return lists;
    }

    public void setLists(List<String> lists) {
        this.lists = lists;
    }

    public Map<String, Integer> getMaps() {
        return maps;
    }

    public void setMaps(Map<String, Integer> maps) {
        this.maps = maps;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "{name:" + name + ", tranPra:" + tranPra + ", number:" + number + ", list:" + lists.toString()
                + ", map:" + maps.toString() + "， date:" + CommonUtil.fastDateFormat(date) +  "}";
    }
}
